package cn.hx.mall.sell.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

/**
 * 限时购场次表(SmsFlashPromotionSession)实体类
 *
 * @author makejava
 * @since 2022-11-02 16:10:30
 */
public class SmsFlashPromotionSession implements Serializable {
    private static final long serialVersionUID = 316062947782485954L;
    /**
     * 编号
     */
    private Long id;
    /**
     * 场次名称
     */
    private String name;
    /**
     * 每日开始时间
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date startTime;
    /**
     * 每日结束时间
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date endTime;
    /**
     * 启用状态：0->不启用；1->启用
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 商品种类数（注意：序列化时字段不能为空，所以给默认值0）
     */
    private Integer productCount=0;

    public int getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SmsFlashPromotionSession{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", status=" + status +
                ", createTime=" + createTime +
                ", productCount=" + productCount +
                '}';
    }
}